90262e8e9dfe6ef38e474a7e77b41d23d3f147a9,client/client/src/main/java/org/wso2/emm/agent/services/operation/OperationManager.java,OperationManager,getLogcat,#org.wso2.emm.agent.beans.Operation#,883

Before Change


    public void getLogcat(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException {
        if (Constants.SYSTEM_APP_ENABLED){
            operation.setStatus(resources.getString(R.string.operation_value_progress));
            CommonUtils.callSystemApp(context, Constants.Operation.LOGCAT, String.valueOf(operation.getId()),
                    null);
        } else {
            RuntimeInfo info = new RuntimeInfo(context);

After Change


    public void getLogcat(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException {
        if (Constants.SYSTEM_APP_ENABLED){
            try {
                JSONObject commandObj = new JSONObject();
                commandObj.put("operation_id", operation.getId());
                commandObj.put("log_level", Constants.LogPublisher.LOG_LEVEL);
                CommonUtils.callSystemApp(context, Constants.Operation.LOGCAT, commandObj.toString(),
                        null);
                operation.setStatus(resources.getString(R.string.operation_value_progress));